<?php

 
namespace com;
class BB{

    function echoPI(){
        echo 3.14159269397;
    }
}
include "com/funcs/add.php";
$p=new   BB();
$p->echoPI();
$sub=new   funcs\abc\BB();
$sub->echoPI();